window.onload=function(){ 
  var myDate= new Date(); 
  var startYear=myDate.getFullYear()-50;//起始年份 
  var endYear=myDate.getFullYear()+50;//结束年份 
 //年份选择器
  var obj1=document.getElementById("Years")
  for (var i=startYear;i<=endYear;i++) 
  { 
    obj1.options.add(new Option(i,i)); 
  } 
  obj1.options[obj1.options.length-51].selected=1;
}

//点击搜索触发事件
$("#searchValue").click(function(){
	var date=$("#Years").val();
	window.location.href="../static/findsumMoney?date="+date;
})